<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns:fo="http://www.w3.org/1999/XSL/Format" version="1.0">

    <!-- These are additional parameters and templates to be imported into the modified ones.
    They are separated from the modified ones to allow easier upgrade of docbook-xsl.
    All of the following is new and has no equivalent in the original docbook-xsl at the time of wrtiting.
    If a docbook-xsl upgrade provides a function similar to the one provided by thecustom
    layer, then the docbook-xsl function should be implemented and the custom one should be deleted.
    Docbook-xsl guys are truly involved in stylesheet development and really know what they are doing.
    -->
    
    <xsl:template name="inline.bolditalicmonoseq">
      <xsl:param name="content">
        <xsl:apply-templates/>
      </xsl:param>
      <fo:inline font-style="italic" font-weight="bold" xsl:use-attribute-sets="monospace.properties">
        <xsl:if test="@id">
          <xsl:attribute name="id">
            <xsl:value-of select="@id"/>
          </xsl:attribute>
        </xsl:if>
        <xsl:if test="@dir">
          <xsl:attribute name="direction">
            <xsl:choose>
              <xsl:when test="@dir = 'ltr' or @dir = 'lro'">ltr</xsl:when>
              <xsl:otherwise>rtl</xsl:otherwise>
            </xsl:choose>
          </xsl:attribute>
        </xsl:if>
        <xsl:copy-of select="$content"/>
      </fo:inline>
    </xsl:template>
</xsl:stylesheet>